<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\models\GkyWeArticle */

$this->title = $model->wename;
$this->params['breadcrumbs'][] = ['label' => '文章列表', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="gky-we-article-view">


   <div class="bg-info" style="width: 100%;height: 80px;border:1px solid #ddd;border-radius: 3px;">
        <p class="text-primary"style=" color: #0066cc;font-size: 20px;margin-left: 10px;">信息一览</p>
        <div style="float: right;">
        <?= Html::a('更新', ['update', 'id' => $model->id], ['class' => 'btn btn-info','style' => 'margin-right:5px']) ?>
            <?= Html::a('新建', ['create'], ['class' => 'btn btn-info','style' => 'margin-right:5px']) ?>
         <?= Html::a('返回', ['index'], ['class' => 'btn btn-info','style' => 'margin-right:10px']) ?>
        </div>
    </div>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
       //     'id',
        //    'weid',
            'wename',
            'addtime',
            'content:ntext',
            'puber',
            'title',
           // 'banner',
//            'typeid',
            [
                'attribute'=>'typeid',
                'lable'=>'文章类型',
                'value'=>$model->arcticleType->typename,
            ],
//            'arttype',
//            'olink',
        ],
    ]) ?>
        <?php 
            echo "<table class='table table-striped table-bordered detail-view' style='margin-top:-20px;'><tr><td width='23%' style='font-color:#333; font-size:14px; font-weight:bolder;'>横幅</td>";
            echo "<td>".Html::img($model->banner,[])."</td></tr></table>";
            ?>
</div>
